package org.sy.lab.Java7并发编程实战.一线程管理.二线程信息的获取和设置;

public class Calculator implements Runnable {
	private int number;
	public Calculator(int number) {
		this.number = number;
	}
	@Override
	public void run() {
		for(int i=1; i<=10; i++) {
			System.out.printf("%s: %d * %d = %d\n", Thread.currentThread().getName(), number, i, i*number);
		}
	}
}
